import React, { Component } from 'react'
import ChooseUtil from '../../../util/chooseUtil'
import {
    View,
    Text
} from 'react-native'


export default class ChooseOther extends Component {

    constructor(props) {
        super(props);
    }

    render() {
        return (
            <View>
                <Text onPress={()=>{this.show()}} style={{fontFamily:'msyh',fontSize:12}}>选择</Text>
                <ChooseUtil ref="chooseUtil" rollback={this.go.bind(this)}/>
            </View>
        )
    }

    show(){
        this.refs.chooseUtil.picker.show();
        this.refs.chooseUtil.setState({
            isModal: true
        })
    }

    go(data){
        //时间插件确认回调
        //console.log("回调取得时间")
        //console.log(data)
    }
}
